package com.ncu702.backend.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "comment")
public class Comment {
    //cid
    private String cid;
    //所评论的文章的id
    private String articleId;
    //评论的人的id
    private long uid;
    //评论的内容
    private String content;
    //评论的时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date postTime;
}
